$uiWidth: 1920;
//多行超出省略号
@mixin ellipsis($line: 2, $line-height: 1.2) {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: $line;
    line-height: $line-height;
}

// px to vw
@function px2vw($px) {
    @return $px / $uiWidth * 100vw;
}
